
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>悬停</title>
    <style>
        a{
            text-decoration: none;
            display: block;
        }

        .con{
            position: relative;
            width: 400px;
        }

        .con .item{
            width: 100%;
            height: 100%;
        }

        .con .item img {
            width: 100%;
        }

        .btn {
            opacity: 0;
            position: absolute;
            width: 56px;
            height: 56px;
            right: 10%;
            bottom: 10%;
            background: url() no-repeat center center;
            transition: opacity .4s ease-in .4s ;
        }

        .con:hover .btn {
            opacity: 1;
        }

        .mask {
            width: 100%;
            height: 0;position: absolute;
            bottom: 0;
            transition: height .5s ease-in-out;
            overflow: hidden; 
            background-color: #c8c2c26c;
        }

        .con:hover .mask {
           height: 100%; 
        }

        h3{
            color: hotpink;
        }

        .first{
            width: 100px;
            height: 50px;
            position: absolute;
            background: #e4343453;
            border-radius: 32px/32px;
            margin: 20px 190px;
        }
        .first span{
            margin: 14px 32px;
            position: absolute;
        }
    </style>
</head>
<body>
    <div class="con">
        <a href="#" target="_blank" class="item">
            <img src="./图片/4.jpg" alt="">
        </a>
        <a href="#" target="_blank" class="btn"></a>
        <a href="#" target="_blank" class="mask">
            <h1>她去哪里了</h1>
            <p>远方的她，正无语凝眸，望眼欲穿。。。</p>
        </a>
    </div>
    <br><br>
</body>
</html>